<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html lang="en">
<head>
	<title>任务汇总</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link type="text/css" rel="stylesheet" href="${staticPath}/layui/css/layui.css">
	<link type="text/css" rel="stylesheet" href="${staticPath}/layui/modules/css/common.css">
</head>
<body style="padding:0 30px;">
<blockquote class="layui-elem-quote" style=" border-left: 0px solid #FFFFFF; background-color: #FFFFFF">
	<img src="${staticPath}/layui/modules/images/login/team.png" /> 商户个人中心
</blockquote>
<blockquote class="layui-elem-quote">
	任务汇总
</blockquote>

	<div>
		<div class="box-submit">
			<label>
				<p>日期：</p>
				<input type="text" class="layui-input" id="createDate" readonly="readonly" value="${createDate}" />
			</label>
		</div>
		<div class="box-submit">
		<table>
			<thead>
				<th width="200" style="text-align:center;">名称</th>
				<th width="200" style="text-align:center;">数量</th>
				<th width="200" style="text-align:center;">金额</th>
				<th width="200" style="text-align:center;">操作</th>
			</thead>
			<tbody>
				<c:forEach items="${groups}" var="group">
					<tr>
					<td style="text-align:center;">${group.groupName}</td>
					<td style="text-align:center;">${group.groupCount}</td>
					<td style="text-align:center;">${group.groupTotal}</td>
					<td style="text-align:center;"><input type="button" value="下载" class="exportExc" id="${group.id}"/></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		</div>
		<div class="button">
			<button class="layui-btn layui-btn-danger" id="exportExcAll">下载汇总</button>&nbsp;&nbsp;&nbsp;
			<button class="layui-btn layui-btn-danger" id="exportExcPool">统计下载</button>
		</div>
	</div>
<script src="${staticPath}/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['laypage','jquery','layer','laytpl','form','laydate'], function(){
        var laypage = layui.laypage,$ = layui.jquery,layer = layui.layer,laytpl = layui.laytpl,form = layui.form,laydate = layui.laydate;
        $(".exportExc").bind({
			click:function(){
                var url= "${adminPath}/client/bale/exportExc";
                var createDate = $("#createDate").val();
                url = url+'?createDate='+createDate+'&id='+$(this).attr('id');
                window.open(url);
			}
		});
        $("#exportExcAll").bind({
            click:function(){
                var url= "${adminPath}/client/bale/exportExcAll";
                var createDate = $("#createDate").val();
                url = url+'?createDate='+createDate;
                window.open(url);
            }
        })
        $("#exportExcPool").bind({
            click:function(){
                var url= "${adminPath}/client/bale/exportExcPool";
                var createDate = $("#createDate").val();
                url = url+'?createDate='+createDate;
                window.open(url);
            }
        })
	});
</script>
</body>
</html>